/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 单文件上传 字段：file POST /api/ossFile/saveFile */
export async function apiOssFileSaveFileUsingPost({
  body,
  options,
}: {
  body: API.ApiOssFileSaveFileUsingPostBody;
  options?: { [key: string]: unknown };
}) {
  return request<API.RFileInfo>('/api/ossFile/saveFile', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
